import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "Home",
      component: () => import("@/views/Home.vue"),
    },
    {
      path: "/user/login",
      name: "UserLogin",
      component: () => import("@/views/user/UserLogin.vue"),
    },
    {
      path: "/user/register",
      name: "UserRegister",
      component: () => import("@/views/user/UserRegister.vue"),
    },
    {
      path: "/admin/manage",
      name: "UserManage",
      component: () => import("@/views/admin/UserManage.vue"),
    },
  ],
})

export default router
